1
general::
Phrase(s): flirt with the idea of doing something
Fig. to think about doing something; to toy with an idea; to consider something, but not too seriously. (See also flirt with someone.) • I flirted with the idea of going to Europe for two weeks. • Jane flirted with the idea of quitting her job.
McGrawhill's American Idioms And Phrasal Verbs